package br.projetopweb.dao.bean;

import java.util.List;

import br.projetopweb.model.bean.Cliente;

public class DAOCliente extends DAOJPA<Cliente>{
	public DAOCliente(){
		super();
	}
	
	@SuppressWarnings("unchecked")
	public List<Cliente> findbyLogin(String login){
		return (List<Cliente>) super.findAllByQuery("select * from Cliente cli where cli.login ='"+login+"'");
	}
	
//	public Cliente findbyLogin(String login){
//		return (Cliente) super.findAllByQuery
//		("select cli.login from Cliente cli where cli.login ='"+login+"'");
//		
//	}
}